home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group96a.txt
/
000182_icon-group-sender _Tue Aug 13 06:52:30 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1996-09-05
|
1KB
Received: by cheltenham.cs.arizona.edu; Tue, 13 Aug 1996 16:20:36 MST
Date: Tue, 13 Aug 96 14:47:15 BST
Message-Id: <24851.9608131347@subnode.aiai.ed.ac.uk>
From: Jeff Dalton <jeff@aiai.ed.ac.uk>
Subject: Re: CGI Tips
To: Clinton Jeffery <jeffery@dragon.cs.utsa.edu>, cdt@post.its.mcw.edu
In-Reply-To: Clinton Jeffery's message of Fri, 9 Aug 1996 08:49:16 -0500
Cc: icon-group@cs.arizona.edu
Errors-To: icon-group-errors@cs.arizona.edu
Status: O
> [Chris Tenaglia posted a CGI scripting question.]
>
> Well, one tip I think I have for you is that I don't think the name=fred part
> comes to your program as a command line argument, I think it comes via an
> environment variable ("name") being set to a value ("fred").
That depends. There are two "methods": GET and POST. GET puts
the args in the env var QUERY_STRING. POST puts them in standard
input (stdin).
There's also an env var PATH_INFO. If your CGI script is
http://.../myscript
and the URL used to access the script is
http://.../myscript/a/b/c
Then PATH_INFO will contain "a/b/c".
-- jeff